package com.cx.mall.user;

import org.springframework.security.crypto.bcrypt.BCrypt;

public class UserTest {
    public static void main(String[] args) {
        BCrypt bCrypt = new BCrypt();
        String hashpw = bCrypt.hashpw("123456", bCrypt.gensalt());
        System.out.println(hashpw);
        boolean checkpw = bCrypt.checkpw("123456", hashpw);
        System.out.println(checkpw);
    }
}
